import React from 'react';
import { TextareaItem } from 'antd-mobile';
import { TextareaItemProps } from 'antd-mobile/lib/textarea-item';
import './index.less';

export interface Props extends TextareaItemProps {
  extra?: string | JSX.Element;
}
const Index: React.FunctionComponent<Props> = (props) => {
  return (
    <div className="hr-textarea">
      <TextareaItem {...(props as any)} />
      {props.extra}
    </div>
  );
};

export default Index;
